package com.smart.service;

import org.hibernate.Criteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.smart.dao.BaseDao;
import com.smart.dao.UserTokenDao;
import com.smart.model.UserToken;
import com.smart.model.UserTokenCond;
import com.smart.model.VerifyCode;

/**
 * 
 * @author Sunxin
 *
 */
 
@Service
public class UserTokenServiceImpl extends BaseEntityService<UserToken, UserTokenCond, Long> implements UserTokenService{

	@Autowired
	private UserTokenDao dao;
	
	@Override
	protected BaseDao<UserToken, UserTokenCond, Long> getDao() {
		return dao;
	}

	@Override
	public UserToken findLatestToken(Long uid) {
		return dao.findLatestToken(uid);
	}
}
